package day1704;

import java.security.KeyStore;

public class piao extends Thread{
    static int ps =100;

    @Override
    public void run() {
        while (true){
            try {
                piao.sleep(10);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            ps--;
            System.out.println(this.getName()+"还剩"+ps+"张票");
            if (ps<=0)
                return;
        }

    }
}
